<?php

namespace common\logics\forms;

use Yii;

/**
 * 推荐内容统一表单
 *
 * @author emhome <emhome@163.com>
 * @since 2.0
 */
class PositionDataForm extends \common\models\position\PositionData {

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['position_id', 'type', 'map_id', 'listorder', 'admin_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['title', 'model', 'thumb'], 'required'],
            [['title', 'model', 'model_id'], 'string', 'max' => 50],
            [['description', 'thumb', 'map_data', 'url'], 'string', 'max' => 255],
        ];
    }

}
